.class public final Llt/noframe/ratemeplease/Triggers;
.super Ljava/lang/Object;
.source "Triggers.kt"


# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
    value = "SMAP\nTriggers.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Triggers.kt\nlt/noframe/ratemeplease/Triggers\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,40:1\n10741#2,2:41\n10741#2,2:43\n*E\n*S KotlinDebug\n*F\n+ 1 Triggers.kt\nlt/noframe/ratemeplease/Triggers\n*L\n25#1,2:41\n33#1,2:43\n*E\n"
.end annotation


# static fields
.field public static final INSTANCE:Llt/noframe/ratemeplease/Triggers;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 22
    new-instance v0, Llt/noframe/ratemeplease/Triggers;

    invoke-direct {v0}, Llt/noframe/ratemeplease/Triggers;-><init>()V

    sput-object v0, Llt/noframe/ratemeplease/Triggers;->INSTANCE:Llt/noframe/ratemeplease/Triggers;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .line 22
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final addShownDialog(Landroid/content/Context;Llt/noframe/ratemeplease/abs/AbsSocialNetwork;)V
    .locals 1

    const-string v0, "c"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "dialog"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 39
    invoke-static {p1}, Llt/noframe/ratemeplease/utils/UtilsKt;->sp(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p1

    invoke-static {}, Llt/noframe/ratemeplease/TriggersKt;->getKEY_TRIGGER_SHOWN_SET()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Llt/noframe/ratemeplease/abs/AbsSocialNetwork;->getKey()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, v0, p2}, Llt/noframe/ratemeplease/utils/UtilsKt;->addToSet(Landroid/content/SharedPreferences;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public final clearCounts(Landroid/content/Context;)V
    .locals 4

    const-string v0, "c"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 33
    invoke-static {}, Llt/noframe/ratemeplease/TriggersKt;->getTRIGGER_ARRAY()[Llt/noframe/ratemeplease/abs/AbsTrigger;

    move-result-object v0

    .line 43
    array-length v1, v0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    aget-object v3, v0, v2

    .line 33
    invoke-virtual {v3, p1}, Llt/noframe/ratemeplease/abs/AbsTrigger;->reset(Landroid/content/Context;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final isTriggered(Landroid/content/Context;)Z
    .locals 5

    const-string v0, "c"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 25
    invoke-static {}, Llt/noframe/ratemeplease/TriggersKt;->getTRIGGER_ARRAY()[Llt/noframe/ratemeplease/abs/AbsTrigger;

    move-result-object v0

    .line 41
    array-length v1, v0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v1, :cond_1

    aget-object v4, v0, v3

    .line 26
    invoke-virtual {v4, p1}, Llt/noframe/ratemeplease/abs/AbsTrigger;->isTriggered(Landroid/content/Context;)Z

    move-result v4

    if-eqz v4, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_1
    return v2
.end method
